#
# spectClean/src/fold
#

set(fold_SRC
    src/sin_fit.cpp
    src/Folding.cpp
    #src/sin_fit_2.cpp
)

# === Build the utility library.
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/core)

add_library(fold SHARED ${fold_SRC})
set_target_properties(fold PROPERTIES
    COMPILE_FLAGS ${OpenMP_CXX_FLAGS}
    LINK_FLAGS ${OpenMP_CXX_FLAGS}
)
target_link_libraries(fold
    core
    gsl
    cblas
    ${QT_QTCORE_LIBRARY}
)

# Recurse into test subdirectory.
add_subdirectory(test)
